<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="UsertableViewDlg" widgetVar="UsertableViewDialog" modal="true" resizable="false"  appendTo="@(body)" header="#{myBundle.ViewUsertableTitle}" closeOnEscape="true">

            <h:form id="UsertableViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{usertableController.selected != null}">

                        <h:outputText value="#{myBundle.ViewUsertableLabel_id}"/>
                        <h:outputText value="#{usertableController.selected.id}" title="#{myBundle.ViewUsertableTitle_id}"/>

                        <h:outputText value="#{myBundle.ViewUsertableLabel_name}"/>
                        <h:outputText value="#{usertableController.selected.name}" title="#{myBundle.ViewUsertableTitle_name}"/>

                        <h:outputText value="#{myBundle.ViewUsertableLabel_password}"/>
                        <h:outputText value="#{usertableController.selected.password}" title="#{myBundle.ViewUsertableTitle_password}"/>

                        <h:outputText value="#{myBundle.ViewUsertableLabel_ip}"/>
                        <h:outputText value="#{usertableController.selected.ip}" title="#{myBundle.ViewUsertableTitle_ip}"/>

                        <h:outputText value="#{myBundle.ViewUsertableLabel_status}"/>
                        <h:outputText value="#{usertableController.selected.status}" title="#{myBundle.ViewUsertableTitle_status}"/>

                        <h:outputText value="#{myBundle.ViewUsertableLabel_vorname}"/>
                        <h:outputText value="#{usertableController.selected.vorname}" title="#{myBundle.ViewUsertableTitle_vorname}"/>

                        <h:outputText value="#{myBundle.ViewUsertableLabel_nachname}"/>
                        <h:outputText value="#{usertableController.selected.nachname}" title="#{myBundle.ViewUsertableTitle_nachname}"/>

                        <h:outputText value="#{myBundle.ViewUsertableLabel_avatar}"/>
                        <h:outputText value="#{usertableController.selected.avatar}" title="#{myBundle.ViewUsertableTitle_avatar}"/>

                        <h:outputText value="#{myBundle.ViewUsertableLabel_clan}"/>
                        <h:outputText value="#{usertableController.selected.clan}" title="#{myBundle.ViewUsertableTitle_clan}"/>

                        <h:outputText value="#{myBundle.ViewUsertableLabel_session}"/>
                        <h:outputText value="#{usertableController.selected.session}" title="#{myBundle.ViewUsertableTitle_session}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{myBundle.Close}" onclick="UsertableViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
